﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace Fjaspx.Sys.Bll
{
  public  class Page
    {
      Fjaspx.Sys.Dal.Page dal = new Fjaspx.Sys.Dal.Page();
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        /// <param name="TableName">Name of the table.</param>
        /// <param name="OrderFld">The order FLD.</param>
        /// <param name="PageSize">Size of the page.</param>
        /// <param name="PageIndex">Index of the page.</param>
        /// <param name="strWhere">The STR where.</param>
        /// <returns></returns>
        public DataSet GetList(string TableName,string OrderFld, int PageSize, int PageIndex, string strWhere)
        {
          return  dal.GetList(TableName, OrderFld, PageSize, PageIndex, strWhere);
        }
        /// <summary>
        /// Gets the list.  自定义SQL语句 
        /// </summary>
        /// <param name="SQL">The SQL.</param>
        /// <returns></returns>
        public static DataSet GetList(string SQL)
        {
            return new Fjaspx.Sys.Dal.Page().GetList(SQL);
        }
    }
}
